package com.open4cn.simulator.core.parser;

import com.open4cn.simulator.core.answer.AbstractAnswer;

import java.util.List;

/**
 * @author yinxiaopeng
 * @version 1.0.0
 * @company 致景科技
 * @department 飞梭BU/研发
 * @description 指令分析器
 * @Email yinxiaopeng@zj.tech
 * @date 2022-05-03 17:02
 */
public interface IInstructionParser {

    /**
     * 解析指令
     *
     * @param msg
     * @param chain
     * @return
     */
    Object parse(Object msg, InstructionParserChain chain);


    /**
     * 获取指令应答器
     *
     * @return
     */
    List<AbstractAnswer> getAnswers();

}
